// 获取地址参数
export const getUrlParams = (url = '') => {
    let params = {};

    const urlParams = url.slice(url.indexOf('?') + 1).split('&');
    urlParams.forEach((item) => {
        const param = item.split('=');
        params[param[0]] = param[1];
    });

    return params;
};